package com.wyix.entity;

import java.util.Date;

/**
 * @author wangdx
 * @since 2025/8/5
 */
public class PhotoMetadata {
    private String photoId;      // 照片唯一ID（如 UUID）
    private String fileName;     // 原始文件名
    private long uploadTime;     // 上传时间（时间戳）
    private String thumbnailPath;// 缩略图路径

    public PhotoMetadata(String photoId, String fileName, long uploadTime, String thumbnailPath) {
        this.photoId = photoId;
        this.fileName = fileName;
        this.uploadTime = uploadTime;
        this.thumbnailPath = thumbnailPath;
    }

    public String getPhotoId() {
        return photoId;
    }

    public void setPhotoId(String photoId) {
        this.photoId = photoId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getThumbnailPath() {
        return thumbnailPath;
    }

    public void setThumbnailPath(String thumbnailPath) {
        this.thumbnailPath = thumbnailPath;
    }

    // 构造方法、getter 和 setter 省略...
    @Override
    public String toString() {
        return "[照片ID: " + photoId + ", 文件名: " + fileName + ", 上传时间: " + new Date(uploadTime) + "]";
    }
}
